
[@main.layout title="User management"]
<style>
p.title {
	margin: .5em 0 0 0;
	font-size: 2em;
}
p.title span {
	font-size: .5em;
}
</style>

<p class="title">User Account Profile 
<span>( <a href="${reqRoute.controllerPath}/chgpwd-form">Change Password</a> )</span>
</p>
<table class="twocols">
	<tr class="odd"><td>Id</td><td>${user.id}</td></tr>
	<tr class="even"><td>Email</td><td>${user.email}</td></tr>
	<tr class="odd"><td>Active</td><td>${user.active?string("yes", "no")}</td></tr>
	<tr class="even"><td>Created Date</td><td>${user.createdDate?datetime}</td></tr>
	<tr class="odd"><td>Last Updated Date</td><td>${user.lastModifiedDate?datetime}</td></tr>
</table>

[#assign profile = user.profile]

<p class="title">Computer Experience Profile 
<span>( <a href="${reqRoute.controllerPath}/edit-favorites-form">Edit</a> )</span>
</p>
<table class="twocols">
	<tr class="odd"><td>Favorite Programming Language</td><td>${profile.favoriteProgrammingLang!""}</td></tr>
	<tr class="even"><td>Favorite Operating Systems</td><td>${profile.favoriteOS!""}</td></tr>
	<tr class="odd"><td>Favorite Browser</td><td>${profile.favoriteBrowser!""}</td></tr>
	<tr class="even"><td>Favorite Database</td><td>${profile.favoriteDatabase!""}</td></tr>
</table>

<p class="title">Personal Account Profile 
<span>( <a href="${reqRoute.controllerPath}/edit-contact-form">Edit</a> )</span>
</p>
<table class="twocols">
	<tr class="odd"><td>First Name</td><td>${profile.firstName!""}</td></tr>
	<tr class="even"><td>Last Name</td><td>${profile.lastName!""}</td></tr>
	<tr class="odd"><td>Middle Name</td><td>${profile.middleName!""}</td></tr>
	<tr class="even"><td>Address Line1</td><td>${profile.addressLine1!""}</td></tr>
	<tr class="odd"><td>Address Line2</td><td>${profile.addressLine2!""}</td></tr>
	<tr class="even"><td>City</td><td>${profile.city!""}</td></tr>
	<tr class="odd"><td>State</td><td>${profile.state!""}</td></tr>
	<tr class="even"><td>ZipCode</td><td>${profile.zipcode!""}</td></tr>
</table>

[/@main.layout]
